/-app
/-app/layout
Application.html
TestPage.html
/-app/tests
TestCase.ts
TestPage.ts
Application.ts
/-boot
boot.css
boot.d.ts
early-0.js
early-1-with-knockout.js
/-imports
/-storage
/-tests ...
_sampleTests.ts
/-typings
stringUtils.ts
teapo.html
1
/**
2
 * All tests are stashed away in teapo.tests module.
3
 * Teapo is an application, not a library, so all the tests are tests of the application pieces and parts.
4
 */
5
module teapo.tests {
6
 
7
  export function sampleTest() {
8
    return; // ok!
9
  }
10
 
11
  export function sampleAsyncTest(callback: (error: Error) => void) {
12
    callback(null);
13
  }
14
 
15
  /* uncomment to see how failing tests presented in UI
16
  export function sampleFailingTest() { 
17
    throw new Error('Failing on purpose, synchronously.');
18
  }
19
 
20
  export function sampleAsyncFailingTest(callback: (error: Error) => void) { 
21
    callback(new Error('Failing on purpose, asynchronously.'));
22
  }
23
  */
24
 
25
}